<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Document</title>
	<script type="text/javascript">
		function setStudent(name,age,gender){
			var obj=new Object();
				obj.name=name;
				obj.age=age;
				obj.gender=gender;
				obj.say=function(){
					alert("hello,say---");
				}
			return obj;
		}

	var stu1=setStudent("lisi",20,"men");
	var stu2=setStudent("tom",23,"men");
	var stu3=setStudent("terry",25,"men");

	console.log(stu1.constructor);
	console.log(stu2.constructor);

	/*stu1.say()
	stu2.say()*/
	//console.log(stu1.say==stu2.say);
	/*console.log(stu1);
	console.log(stu2);
	console.log(stu1==stu2);*/




	</script>






</head>
<body>
	
</body>
</html>